package jpa.entities;


import java.io.Serializable;


/**
 * The primary key class for the Bestelling database table.
 * 
 */

public class ClientBestelling implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private String productSoort = "";

	public String getProductSoort() {
		return productSoort;
	}
	public void setProductSoort(String productSoort) {
		this.productSoort = productSoort;
	}

	private long klantId;


	private long productId;

	private long aantal;

    public ClientBestelling() {
    }

    public long getKlantId() {
		return this.klantId;
	}
	public void setKlantId(long klantId) {
		this.klantId = klantId;
	}
	public long getProductId() {
		return this.productId;
	}
	public void setProductId(long productId) {
		this.productId = productId;
	}
	public long getAantal() {
		return this.aantal;
	}
	public void setAantal(long aantal) {
		this.aantal = aantal;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof ClientBestelling)) {
			return false;
		}
		ClientBestelling castOther = (ClientBestelling)other;
		return 
			(this.klantId == castOther.klantId)
			&& (this.productId == castOther.productId)
			&& (this.aantal == castOther.aantal);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.klantId ^ (this.klantId >>> 32)));
		hash = hash * prime + ((int) (this.productId ^ (this.productId >>> 32)));
		hash = hash * prime + ((int) (this.aantal ^ (this.aantal >>> 32)));
		
		return hash;
    }
}